home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / fp / ifp_unix.lzh / ifp / interp / Makefile < prev    next >
Encoding:
Makefile  |  1989-05-23  |  4.3 KB  |  117 lines

  1. #
  2. #****** Makefile ******************************************************#
  3. #**                                                                  **#
  4. #**                    University of Illinois                        **#
  5. #**                                                                  **#
  6. #**                Department of Computer Science                    **#
  7. #**                                                                  **#
  8. #**   Tool: IFP                  Version: 0.5             **#
  9. #**                                                                  **#
  10. #**   Author:  Arch D. Robison          Date:   May 1, 1985          **#
  11. #**                                                                  **#
  12. #**   Revised by: Arch D. Robison    Date:   Dec 5, 1986         **#
  13. #**                                                                  **#
  14. #**   Principal Investigators: Prof. R. H. Campbell                  **#
  15. #**                            Prof. W. J. Kubitz                    **#
  16. #**                                                                  **#
  17. #**                                                                  **#
  18. #**------------------------------------------------------------------**#
  19. #**   (C) Copyright 1987  University of Illinois Board of Trustees   **#
  20. #**                       All Rights Reserved.                       **#
  21. #**********************************************************************#
  22.  
  23. # makefile for ifp interpreter
  24. #
  25. # This makefile is set up for compiling the IFP interpreter on plain
  26. # vanilla UNIX boxes.  It has been tested on VAXen, Pyramids, and RT/PCs.  
  27. #
  28. # Other machines may required modifications to both this Makefile and
  29. # the header file struct.h.  You should first look at the beginning of
  30. # struct.h, which contains the machine-dependent preprocessor variables.
  31.  
  32. # for VAXen, Pyramids, RT/PC and other plain vanilla UNIX boxes.
  33. CFLAGS= #-O 
  34.  
  35. # Definitions for cross-compiling a MS-DOS version of IFP with the
  36. # XENIX system on a PC/AT.  The OPSYS variable in struct.h must
  37. # also be changed from UNIX to MSDOS.
  38. #AOBJS=dos.o
  39. #CFLAGS= -Ml -DPCAT -K -O -dos -F 24000 
  40. #LFLAGS= -DPCAT
  41.  
  42. # Definitions for compiling a XENIX version of IFP on a PC/AT.
  43. #CFLAGS= -DPCAT -Ml -O 
  44. #LFLAGS= -DPCAT           
  45.  
  46. # Definitions are for compiling IFP on a CRAY X-MP under CTSS
  47. #CFLAGS = 
  48.  
  49. # Definitions RT/PC with graphics
  50. #CFLAGS= -DCOMPILE -DGRAPHICS 
  51. #LFLAGS= -DCOMPILE -DGRAPHICS
  52. #GSRC = G_draw.c G_confont.c
  53. #GOBJS=    G_draw.o G_confont.o
  54. #LIBS= -laed
  55.  
  56. #------------------------------------------------------------------------------
  57.  
  58. IHDRS=    cache.h inob.h node.h stats.h string.h struct.h umax.h
  59.  
  60. ISRC=   F_arith.c F_pred.c F_misc.c F_seq.c F_ss.c F_subseq.c F_string.c\
  61.     alloc.c apple.c apply.c binio.c cache.c convert.c command.c \
  62.     debug.c error.c except.c file.c forms.c infun.c inimport.c \
  63.     inob.c list.c main.c node.c outfun.c outob.c stats.c \
  64.     string.c trace.c xdef.c
  65.  
  66. #     Miscellaneous source files for special versions of interpreter
  67. VSRC=   dos.s  offset.c G_draw.c G_confont.c
  68.  
  69. IOBJS=  F_arith.o F_pred.o F_misc.o F_seq.o F_ss.o F_subseq.o F_string.o \
  70.     alloc.o apply.o binio.o cache.o convert.o command.o \
  71.     debug.o error.o except.o file.o forms.o infun.o inimport.o inob.o \
  72.     list.o main.o node.o outfun.o outob.o stats.o string.o \
  73.     trace.o xdef.o
  74.  
  75. #-----------------------------------------------------------------------------
  76.  
  77. ifp:    $(IOBJS) $(AOBJS) $(GOBJS)
  78.     cc $(CFLAGS) $(AOBJS) $(GOBJS) $(IOBJS) $(LIBS) -lm -o ifp
  79. #    strip ifp
  80.     echo "ifp recompiled"
  81.  
  82. $(IOBJS):    struct.h
  83.  
  84. G_confont.o:    G_confont.c            #console vector font
  85. G_draw.o:    struct.h G_draw.c        #optional graphics
  86.  
  87. F_misc.o:    node.h F_misc.c          #F_* = primitive functions
  88. F_string.o:    node.h
  89.  
  90. alloc.o:    node.h umax.h
  91. apply.o:    cache.h node.h stats.h 
  92. cache.o:    cache.h
  93. command.o:    cache.h inob.h node.h stats.h umax.h
  94. error.o:    inob.h
  95. file.o:        inob.h node.h umax.h
  96. forms.o:    node.h stats.h umax.h
  97. infun.o:    inob.h node.h
  98. inimport.o:    inob.h node.h 
  99. inob.o:        inob.h node.h
  100. list.o:        node.h stats.h umax.h 
  101. main.o:        cache.h stats.h umax.h
  102. node.o:        node.h umax.h
  103. outfun.o:    string.h node.h
  104. outob.o:    string.h 
  105. stats.o:    stats.h
  106. string.o:    string.h umax.h
  107. xdef.o:        node.h
  108.  
  109. #------------------------------------------------------------------------------
  110.  
  111. lint:      $(IHDRS) $(ISRC) $(GSRC)
  112.        lint -u -h $(LFLAGS) $(ISRC) $(GSRC) >lint.err
  113.  
  114. dos:       ifp
  115.        doscp -r ifp A:/ifp.exe
  116.  
  117.